﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PageClose.aspx.cs" Inherits="ZLDC.Estate.Page.PageClose" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .div1
        {
            text-align: center;
        }
    </style>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        var tabpage = 0;
        //        function Fc(obj) {
        //            if (tabpage == 0) {
        //                var path = "";
        //                if (obj == '今日工作部署') {
        //                    path = "../Quantify/lp_Configuration.aspx";
        //                } else {
        //                    path = "../Quantify/lp_YesterDay.aspx?opentype=1";//弹出窗口
        //                    obj = "昨日检查工作";
        //                }

        //                var parameter = obj;

        //                var nwin;    
        //                var style = "resizable = yes, scrollbars = yes,width=750px, height=550px,Toolbar=no,Location=no,Direction=no,Resizeable=no";
        //                nwin = window.open(path, parameter, style);
        //                nwin.focus();
        //        }

        //    }

        function Fc(obj) {
            if (tabpage == 0) {

                if (obj == '今日工作部署') {
                    parent.addTab(obj, "../Quantify/lp_Configuration.aspx", "icon-nav");
                } else {
                    parent.addTab(obj, "../Quantify/lp_YesterDay.aspx", "icon-nav");
                } parent.ClosePop();

            }
        }
        window.onload = function() {
       
            if (document.getElementById('Button1').style.color == 'black' && document.getElementById('Button2').style.color == 'black') {
                parent.ClosePop();
            }
            var date = new Date(); //日期对象

            var hus = date.getHours();
            if (hus > 12) {
                document.getElementById('atime').innerHTML = "下午好！";
            }
            else {
                document.getElementById('atime').innerHTML = "早上好！";
            }


        }

        function checkWork() {

        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="div1">
        <table width="450px">
            <tr>
                <td colspan="2" align="left">
                    <a id="a1" runat="server"></a>经理：<a id="atime"></a>！
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input id="Button1" runat="server" type="button" value="昨日工作检查"  style="color: Red"  class="button1" onclick="Fc('昨日检查工作')" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input id="Button2" type="button" value="今日工作部署" style="color: Red" runat="server"
                        class="button1" onclick="Fc('今日工作部署')" />
                </td>
            </tr>
            <tr style="display: none">
                <td>
                </td>
                <td align="right">
                    <input id="Button3" type="button" value="稍后再说" style="color: Red" class="button1"
                        onclick="parent.ClosePop()" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
